﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FacultyExample
{
    class Chair
    {
        public string Name;
        public List<Group> groups = new List<Group>();

        public static int chairCount = 100;

        public static Chair GenerateRandomChair()
        {
            Chair chair = new Chair();
            chair.Name = "Chair" + chairCount++;
            for (int i = 0; i < 3; i++)
            {
                Group grp = Group.GenerateRandomGroup();
                chair.groups.Add(grp);
            }
            return chair;
        }

        public void PrintChairToConsole()
        {
            Console.WriteLine("++++++++++++++++++++++");
            Console.WriteLine("Chair Name: {0}", Name);
            Console.WriteLine("++++++++++++++++++++++");
            foreach (var group in groups)
            {
                group.PrintGroupToConsole();
            }
        }
    }
}
